<?php
session_start();

// Clear all previous messages.
if($_SESSION['log-err']) session_unregister('log-err');
if($_SESSION['log-info']) session_unregister('log-info');

if($page = $_GET['page']) $_SESSION['page'] = $page.'.php';
else $_SESSION['page'] = 'login.php';
header( 'Location: ../' ) ;
?>